Function: serialize_v2

CALL:

str = serialize_v2(S)

DESCRIPTION:

Serialize Matlab variable, without writing to disk.

INPUT:

S any
matlab variable

OUTPUT:

str string
serialized form of S. Use deserialize_v2 to convert back.